const menus = [
  { path: "/home", orderNo: 1 },
  { path: "/menu", orderNo: 2 },
  { path: "/about", orderNo: 3 },
];

/**
 * @description 获取菜单排序
 * @param path 菜单路径
 */
export function getMenusOrderNo(path) {
  return menus.find((v) => v.path === path)?.orderNo;
}

export default menus;
